package org.huntaway.struts;

import org.huntaway.kernel.imp.CurrToolsImp;

public class JarFilePath {
	static CurrToolsImp curr = new CurrToolsImp();

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		JarFilePath jfp = new JarFilePath();
		jfp.tTest(JarFilePath.class);

		// String str = "org.apache.struts.actions.DispatchAction";
		String str = "org.apache.struts.resources.struts-config_1_3.dtd";
		java.util.ResourceBundle rb = java.util.ResourceBundle.getBundle(str);
		curr.logln(rb.toString());
	}

	private void tTest(Class classStr) {
		String str1 = classStr.getProtectionDomain().getCodeSource()
				.getLocation().getFile();//
		curr.logln(str1);
	}

}
